package com.ijiuchuang.jc_localization.view.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.ijiuchuang.jc_localization.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * A simple {@link Fragment} subclass.
 */
public class AboutFragment extends Fragment {

    @BindView(R.id.about_text_info)
    TextView textInfo;
    @BindView(R.id.about_text_copyright)
    TextView textCopyright;
    @BindView(R.id.about_image_logo)
    ImageView imageLogo;

    public AboutFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_about, container, false);
        ButterKnife.bind(this, view);

        imageLogo.setImageResource(R.drawable.pic_logo);
        textInfo.setText(R.string.text_about_info);
        textCopyright.setText(R.string.app_about_copyright);
        return view;
    }

}
